package cn.lvji.springboot.learn5.vo;

import com.google.common.base.Objects;
import java.util.List;

/**
 * @author zhouzx
 */
public class LayuiGrid<T> {
    private int count;
    private List<T> data;

    public LayuiGrid() {
    }

    public LayuiGrid(int count, List<T> data) {
        this.count = count;
        this.data = data;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        LayuiGrid<?> layuiGrid = (LayuiGrid<?>) o;
        return count == layuiGrid.count &&
            Objects.equal(data, layuiGrid.data);
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(count, data);
    }
}
